﻿<%@ Page Title="" Language="C#" MasterPageFile="~/IntecnologiaMasterPage.master" AutoEventWireup="true" Inherits="News" Codebehind="News.aspx.cs" %>

<%@ Import Namespace="BusinessLayer" %>

<%--HEADER CONTENT--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <%--<script type="text/javascript">
        $(document).ready(function() {
            $('span#content1').hide();
            $('span#content2').hide();
            $('span#content3').hide();

            $('span#header1').hover(function() {
                $('span#content2').hide('slow');
                $('span#content3').hide('slow');
                $('span#content1').show('slow');
            });

            $('span#header2').hover(function() {
                $('span#content1').hide('slow');
                $('span#content3').hide('slow');
                $('span#content2').show('slow');
            });

            $('span#header3').hover(function() {
                $('span#content1').hide('slow');
                $('span#content2').hide('slow');
                $('span#content3').show('slow');
            });
        });
    </script>--%>
</asp:Content>

<%--WINDOW HEAD CONTENT--%>
<asp:Content ID="headboxcontent" ContentPlaceHolderID="headbox" runat="server">
    <%--HEAD NAME--%>
    <div class="flt windowheadtext">
        INTECNOLOGIA
    </div>
    <%--SPACE--%>
    <br /><br />    
    <%--PATH TEXT--%>
    <% if (Request.Browser.Browser.ToString().Contains("IE") && Request.Browser.Version != "8.0")%>
    <% { %>
        <div style="margin:20px 0px 0px 105px;padding-top:5px">
            Noticias
        </div>
    <% }
       else
       { %>
       
        <div style="margin:10px 0px 0px 105px;padding:0">
            Noticias
        </div>
    <% } %> 
</asp:Content>

<%--CONTENT--%>
<asp:Content ID="Content2" ContentPlaceHolderID="Center" Runat="Server">

    
    <%--NEWS DATALIST--%>
    <asp:DataList ID="dlNews" runat="server" 
                  RepeatColumns="1" DataKeyField="NewsID" RepeatDirection="Horizontal" 
                  Width="100%">
        <%--DATALIST ITEM TEMPLATE--%>
        <ItemTemplate>
        
            <%--CONTENT SPAN--%>
            <span class="flt windowcontentspan">
            
                <%--Upside interior rounding edges--%>
	            <span class="fltr rp_r1"></span>
	            <span class="flt rp_l1"></span>
	            
	            <%--CONTENT HEADER--%>
	            <span class="flt contentheader">
	                <%# ((BusinessLayer.Model.Entities.News)Container.DataItem).Title %> 
	                (<%# ((BusinessLayer.Model.Entities.News)Container.DataItem).Date %>)
	            </span>
	            
	            <%--CONTENT INNER SPAN--%>
	            <span class="flt contentinnerspan">
	                
	                <%--CONTENT TEXT--%>
		            <span class="flt contenttext">
	                    <%# ((BusinessLayer.Model.Entities.News)Container.DataItem).Content %>
	                </span>
	                
	            </span>
	           
                <%--Downside interior rounding edges--%>
	            <span class="flt downsideinnneredge">
		            <span class="fltr rp_r2"></span>
		            <span class="flt rp_l2"></span>
	            </span>
	            
	        </span>
	           
	    </ItemTemplate>
	    
    </asp:DataList> 
      
</asp:Content>